home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ WinNT IoPageLock.xpl < prev    next >
Text File  |  2001-04-12  |  3KB  |  90 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="9"
  3. "COUNT"="1"
  4. "UIPATH"="System\Memory\"
  5. "NAME"="Windows NT/2K/XP I/O Pages"
  6. "VERSION"="2.07"
  7. "OSVERSION"="010101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="IO Size"
  10. "DESCRIPTION 1"="This option allows you to change the maximum number of bytes that can be locked for I/O (Input/Output) operations."
  11. "DESCRIPTION 2"="If you have some extra RAM and an active file system, you can speed up file system activity by increasing this setting beyond the default 512 KB."
  12. "DESCRIPTION 3"="It has been reported that some IDE-CD Recorder will *FAIL* if you change this value to anything else than Default. If you have any problems after using this plug-in, please change the value back to Default."
  13. "DESCRIPTION 4"="NOTE: Please check only one single box."
  14. "WARNING"="1"
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="Thanks to CptSiskoX for his help!"
  19. "COMMENT 2"="Thanks to John Hansen [sasjwh@wnt.sas.com] for the Windows 2000 part!"
  20. "COMMENT 3"="Thanks to Thomas Koschate [koschate@bigfoot.com] for the CDR bug-notice."
  21.  
  22.  
  23. sV1="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management\IoPageLockLimit" 'DW 
  24. Sub Plugin_Initialize 
  25.  Call SetUIElement(1,"(1) 512 KB (Default)")
  26.  Call SetUIElement(2,"(2) 4096 KB (for 32+ MB computers)")
  27.  Call SetUIElement(3,"(3) 8192 KB (for 64+ MB computers)")
  28.  Call SetUIElement(4,"(4) 16384 KB (for 128+ MB computers)")
  29.  Call SetUIElement(5,"(5) 32768 KB (for 160+ MB computers)")
  30.  Call SetUIElement(6,"(6) 65536 KB (for 256+ MB computers)")
  31.  
  32.  i=RegReadValue(sV1)
  33.  
  34.  if IsEmpty(i)=false then
  35.     if i=0 then     Call SetUiElementEx(1,true)
  36.     if i=4096 then  Call SetUiElementEx(2,true)
  37.     if i=8192 then  Call SetUiElementEx(3,true)
  38.     if i=16384 then Call SetUiElementEx(4,true)
  39.     if i=32768 then Call SetUiElementEx(5,true)
  40.     if i=65536 then Call SetUiElementEx(6,true)
  41.  else
  42.     Call SetUiElementEx(1,true)
  43.  end if
  44. End Sub
  45.  
  46.  
  47. Sub Plugin_CheckData(ElementIndex)
  48. End Sub
  49.  
  50.  
  51.  
  52. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  53.  e=0
  54.  for i=1 to 6
  55.      if GetUIElementEx(i)=true then e=e+1
  56.  next
  57.  
  58.  if e>1 then 
  59.     Call MsgError("Please select only one item!")
  60.  else
  61.    i=empty
  62.    if GetUIElementEx(1)=true then i=0
  63.    if GetUIElementEx(2)=true then i=4096
  64.    if GetUIElementEx(3)=true then i=8192
  65.    if GetUIElementEx(4)=true then i=16384
  66.    if GetUIElementEx(5)=true then i=32768
  67.    if GetUIElementEx(6)=true then i=65536
  68.  
  69.    if isempty(i)=false then
  70.       if i=0 then
  71.          If RegValueExists(sV1) then Call RegDeleteValue(sV1)
  72.       else
  73.          Call RegWriteValue(sV1,i,2)
  74.       end if
  75.  
  76.       Call Restart()
  77.    else
  78.       Call MsgError("Please select a value!")
  79.    end if
  80.  end if
  81.  
  82. End Sub
  83.  
  84.  
  85. Sub Plugin_Terminate 
  86. End Sub
  87.  
  88.  
  89.  
  90.